home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Freeware / Programare / highlight / highlight-W32GUI-2.2-10b-Setup.exe / {app} / langDefs / py.lang < prev    next >
Text File  |  2005-04-08  |  2KB  |  46 lines

  1. # Python language definition file
  2. #
  3. # Author: AndrΘ Simon
  4. #   Mail: andre.simon1@gmx.de
  5. #   Date: 3.4.2002
  6. # ------------------------------------------
  7. # This file is part of highlight, a free source code converter released under the GPL.
  8. #
  9. # The file is used to describe keywords and special symbols of programming languages.
  10. # See README in the highlight directory for details.
  11. #
  12. # New definition files for future releases of highlight are always appreciated ;)
  13. #
  14. # ----------
  15. # andre.simon1@gmx.de
  16. # http:/www.andre-simon.de/
  17.  
  18. # Keywords taken from the VIM-Syntaxfile of Neil Schemenauer
  19.  
  20. $KW_LIST(kwa)= global lambda class nextgroup pythonfunction skipwhite
  21. contained  chr cmp coerce compile complex delattr dir divmod eval execfile
  22. filter float getattr globals hasattr hash hex id input  int intern isinstance
  23. issubclass  len list locals long map max min  oct open ord pow range raw_input
  24. reduce reload repr round setattr  slice str tuple type vars xrange
  25. arithmeticerror assertionerror  attributeerror eoferror environmenterror
  26. exception floatingpointerror ioerror  importerror indexerror keyerror
  27. keyboardinterrupt lookuperror memoryerror nameerror notimplementederror
  28. oserror overflowerror runtimeerror  standarderror syntaxerror systemerror
  29. systemexit typeerror valueerror zerodivisionerror
  30.  
  31. $KW_LIST(kwb)=break continue del except exec finally pass print raise return
  32. try assert def for while if elif  else and in is not or as
  33.  
  34. $KW_LIST(kwc)=import from abs apply callable self
  35.  
  36. $STRINGDELIMITERS=""" ''' " '
  37.  
  38. $RAWSTRINGPREFIX=r
  39.  
  40. $SL_COMMENT=#
  41.  
  42. $IGNORECASE=true
  43.  
  44. $ESCCHAR=\
  45.  
  46. $SYMBOLS= ( ) [ ] { } , ; . : & | < > !  = / * %  + -